/*
 * @Descripttion:
 * @version:
 * @Author: wangmin
 * @Date: 2021-11-04 09:36:33
 * @LastEditors: Heyong
 * @LastEditTime: 2023-11-24 15:56:15
 */

export default {
  dev: {
    // '/api/keeper-system/menu/': {
    //   target: 'http://localhost:8008', // mock
    //   changeOrigin: true,
    // },
    // '/keeper-auth/oauth/token': {
    //   target: 'http://localhost:8008', // mock
    //   changeOrigin: true,
    // },
    // '/iot/': {
    //   // 要代理的地址
    //   target: 'http://10.0.204.9:80',
    //   // target: 'http://172.34.108.186:18080',
    //   // 配置了这个可以从 http 代理到 https
    //   // 依赖 origin 的功能可能需要这个，比如 cookie
    //   changeOrigin: true,
    //   pathRewrite: { '^/iot': '' },
    // },
    "/api": {
      // target: 'http://10.0.204.9:18003', // 开发环境
      target: "http://10.13.124.80:18003", // 开发环境
      changeOrigin: true,
      pathRewrite: { "^/api/": "/" },
    },
    "/app": {
      // target: 'http://10.0.204.9:18003', // 开发环境
      target: "http://10.13.124.80:18080", // 开发环境
      changeOrigin: true,
      pathRewrite: { "^/app/": "/" },
    },
  },
  test: {
    "/api/": {
      target: "https://preview.pro.ant.design",
      changeOrigin: true,
      pathRewrite: { "^": "" },
    },
  },
  pre: {
    "/api/": {
      target: "your pre url",
      changeOrigin: true,
      pathRewrite: { "^": "" },
    },
  },
};
